﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Threading;
using System.Threading.Tasks;

namespace dotnet2cache.Abstractions.Bus
{ 

    public interface IMessagePublisher
    {

        void Publish(string topic, Message message);

        Task PublishAsync(string topic, Message message, CancellationToken cancellationToken = default(CancellationToken));
    }
}
